package com.myExam.base.db;

import com.myExam.R;

import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.TextView;

public class DictionaryProc extends Activity {
	
	String mData;
	SQLiteDatabase mDb;
	TextView mTxtMsg;
	TextView mTextView;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.base_db_dictionaryproc);
	    
	    mTextView = (TextView)findViewById(R.id.DictionaryProc_TextView);
	    mTxtMsg = (TextView)findViewById(R.id.DictionaryProc_txtMsg);
	    
	    Intent intent = getIntent();
	    
	    Bundle myBundle = intent.getExtras();
	    mData = myBundle.getString("key");
	    
	    String backup = mTextView.getText().toString();
	    
	    mTxtMsg.setText(mData+backup);
	}
	
	
	
//	private void openDatabase(){
//		try{
//			mData = SQLiteDatabase.openDatabase("", factory, flags)
//		} catch (Exception e) {
//			// TODO: handle exception
//		}
//	}

}
